import 'package:flutter/material.dart';

// Container是系统组件，会重名
class ContainerType extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:AppBar(
        title: Text("容器类组件"),
      ) ,
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              child: Text("填充"),
              onPressed: (){
                Navigator.of(context).pushNamed('/container/padding');
              },
            ),
            RaisedButton(
              child: Text("尺寸限制类容器"),
              onPressed: (){
                Navigator.of(context).pushNamed('/container/constraint');
              },
            ),
            RaisedButton(
              child: Text("装饰容器"),
              onPressed: () {
                Navigator.of(context).pushNamed('/container/decorate');
              },
            ),
            RaisedButton(
              child: Text("变换"),
              onPressed: (){
                Navigator.of(context).pushNamed('/container/transform');
              },
            ),
            RaisedButton(
              child: Text("Container容器"),
              onPressed: (){
                Navigator.of(context).pushNamed('/container/container_demo');
              },
            ),
            RaisedButton(
              child: Text("Scaffold、TabBar、底部导航"),
              onPressed: (){
                Navigator.of(context).pushNamed('/container/scaffold');
              },
            ),
            RaisedButton(
              child: Text("剪裁"),
              onPressed: (){
                Navigator.of(context).pushNamed('/container/clip');
              },
            ),
          ],
        ),
      ),

    );
  }
}